<template>
	<view class="container">
		<template v-if="IsIdentify==0">
			<view class="headimg"><image src="https://yuehuiba.qiyedaishu.com/img/warn.png" mode="aspectFill"/></view>
			<view class="line">{{Tip}}</view>
			<view class="btn"><view class="home" @click="Back()">返回</view><view class="back" @click="Identify()">实名认证</view></view>
		</template>
		<template v-if="IsIdentify==1">
			<view class="headimg"><image src="/static/success.png" mode="aspectFill"/></view>
			<view class="line">{{Tip}}</view>
			<view class="btn"><view class="home" @click="Home()">首页</view><view class="back" @click="Back()">返回</view></view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Tip:'',
				Role:0,
				IsIdentify:0
			};
		},
		onLoad(options) {
			this.Tip=options.Tip;
			this.Role=options.Role;
			this.IsIdentify=options.IsIdentify;
		},
		methods:{
			Identify(){
				if(this.Role==0 || this.Role==2){
					uni.navigateTo({
						url:'/pages/index/identify',
					})
				}else{
					uni.navigateTo({
						url:'/pages/index/identify_matcher',
					})
				}
			},
			Back(){
				uni.navigateBack({
					delta:4
				})
			},
			Home(){
				uni.switchTab({
					url:'/pages/index/index',
				})
			}
		}
	}
</script>

<style lang="scss">
	page{background-color: #ffffff;}
	.headimg{width:100%; height:auto; text-align:center; margin-top:40rpx; image{width:250rpx; height:250rpx;}}
	.line{width:100%; min-height:60rpx; line-height: 60rpx; text-align: center; font-size:42rpx; padding-left:30rpx; padding-right: 30rpx;}
	.tip{width:100%; height:120rpx; line-height: 40rpx; text-align:center; margin-top:40rpx; color:#007AFF;}
	.btn{width:650rpx; height:80rpx; line-height: 80rpx; display:flex; flex-direction: row; text-align: center; margin-left:50rpx; padding-left:40rpx; padding-right: 40rpx; font-size:34rpx; margin-top:60rpx;
		.home{width:310rpx; height:80rpx; border:1rpx solid #c8c8c8; color:#6b6b6b; background-color: #ffffff; border-radius:40rpx;}
		.back{width:310rpx; height:80rpx; margin-left:30rpx; border-radius:40rpx; background:linear-gradient(to right,#ff8d02,#ff5507); color:#ffffff;}
	}
</style>
